<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'node-form',
	'enableAjaxValidation'=>false,
)); ?>

	<p class="note"><?php echo Yii::t('back',
				'Fields with {asterisk} are required.',
				array('{asterisk}'=>'<span class="required">*</span>'));
	?></p>

	<?php echo $form->errorSummary($model); ?>

	<div class="row">
		<?php echo $form->labelEx($model,'name'); ?>
		<?php echo $form->textField($model,'name',array('size'=>50,'maxlength'=>50)); ?>
		<?php echo $form->error($model,'name'); ?>
	</div>
	
	<div class="row">
		<?php echo $form->labelEx($model,'content'); ?>
		<?php
		$this->widget('ext.ckeditor.CKEditorWidget',array(
			"model"=>$model,                 # Data-Model
			"attribute"=>'content',          # Attribute in the Data-Model
			"defaultValue"=>$model->content,
			
			# Additional Parameter (Check http://docs.cksource.com/ckeditor_api/symbols/CKEDITOR.config.html)
			"config" => array(
				"height"=>"400px",
				"width"=>"100%",
				"toolbar"=>"Node",
			),
			 
			"ckEditor"=>Yii::app()->basePath."/../vendors/ckeditor/ckeditor.php",	# Path to ckeditor.php
			"ckBasePath"=>Yii::app()->baseUrl."/vendors/ckeditor/",					# Realtive Path to the Editor (from Web-Root)
			"ckFinder"=>Yii::app()->basePath."/../vendors/ckfinder/ckfinder.php",
			"ckFinderBasePath"=>Yii::app()->baseUrl."/vendors/ckfinder/",
		));
		?>
		<?php echo $form->error($model,'content'); ?>
	</div>
	
	<div class="row buttons">
		<?php echo CHtml::submitButton($model->isNewRecord ? Yii::t('back', 'Create') : Yii::t('back', 'Save')); ?>
	</div>

<?php $this->endWidget(); ?>

</div><!-- form -->